package com.zhehekeji.opsys.api.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * @ClassName TWhitelistUser
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2017-10-12   上午10:01:34
 */
@Entity
@Table(name="t_whitelist_user")
public class TWhitelistUser implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -4559625627781613577L;
	private Long id;
	private String userId;
	private Date startTime;
	private Date endTime;
	private Date createTime;
	private Integer status;
	private Long whitelistId;
	private Long cpCode;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="USER_ID",length=64,nullable=true)
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="START_TIME",nullable=true)
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="END_TIME",nullable=true)
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME",nullable=true)
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name="STATUS",length=2,nullable=true)
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	@Column(name="WHITELIST_ID",length=20,nullable=true)
	public Long getWhitelistId() {
		return whitelistId;
	}
	public void setWhitelistId(Long whitelistId) {
		this.whitelistId = whitelistId;
	}
	@Column(name="CP_CODE",length=20,nullable=true)
	public Long getCpCode() {
		return cpCode;
	}
	public void setCpCode(Long cpCode) {
		this.cpCode = cpCode;
	}
	
}

